package com.wbt.design.patterns.singleton;

/**
 * 饿汉式
 */
public class SingleObject {

    private static SingleObject instance = new SingleObject();

    private SingleObject(){}

    public static SingleObject getInstance(){
        return instance;
    }

    public void show(){
        System.out.println("Hello Singleton !");
    }
}
